//! \file Purse.cpp
//! \brief TODO: Document
// -----------------------------------------------------------------------------
//! This program is free software; you can redistribute it and/or
//! modify it under the terms of the GNU General Public License
//! as published by the Free Software Foundation; either version 2
//! of the License, or (at your option) any later version.
//!
//! This program is distributed in the hope that it will be useful,
//! but WITHOUT ANY WARRANTY; without even the implied warranty of
//! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//! GNU General Public License for more details.
//!
//! You should have received a copy of the GNU General Public License
//! along with this program; if not, write to the Free Software Foundation,
//! Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// -----------------------------------------------------------------------------

#include "Purse.h"

// =====[ Local Definitions ]===================================================

// =====[ Local DataTypes ]=====================================================

// =====[ Local Variables ]=====================================================

// =====[ Local Functions ]=====================================================

// =====[ Private (Internal) Methods ]==========================================

// =====[ Local Implementation ]================================================

#include "Purse.h"

namespace DnD {


// =============================================================================
// FxName
// -----------------------------------------------------------------------------
//! TODO: document
//!
//! \param [in] Arg
//!   TODO: document
//!
//! \retval Exception
//!   The success status of the requested operation.
//!   - eOKAY: Execution occurred as requested.
//!   .
//!
//! \b Example: \code
//! FxName(0);
//! \endcode
// -----------------------------------------------------------------------------
Purse::Purse()
{
  m_Copper = 0;
  m_Silver = 0;
  m_Gold = 0;
  m_Platinum = 0;
}


// =============================================================================
// FxName
// -----------------------------------------------------------------------------
//! TODO: document
//!
//! \param [in] Arg
//!   TODO: document
//!
//! \retval Exception
//!   The success status of the requested operation.
//!   - eOKAY: Execution occurred as requested.
//!   .
//!
//! \b Example: \code
//! FxName(0);
//! \endcode
// -----------------------------------------------------------------------------
Purse::~Purse()
{
  // TODO Auto-generated destructor stub
}


// TODO: comment
std::eBool deposit(std::tUINT16 m_Copper,
                   std::tUINT16 m_Silver = 0,
                   std::tUINT16 m_Gold = 0,
                   std::tUINT16 m_Platinum = 0)
{
  return (std::eFALSE);
}


// TODO: comment
std::eBool withdraw(std::tUINT16 m_Copper,
                    std::tUINT16 m_Silver = 0,
                    std::tUINT16 m_Gold = 0,
                    std::tUINT16 m_Platinum = 0)
{
  return (std::eFALSE);
}



// =============================================================================
// Purse::update
// -----------------------------------------------------------------------------
//! TODO: document
//!
//! \param [in] Arg
//!   TODO: document
//!
//! \retval Exception
//!   The success status of the requested operation.
//!   - eOKAY: Execution occurred as requested.
//!   .
//!
//! \b Example: \code
//! FxName(0);
//! \endcode
// -----------------------------------------------------------------------------
void Purse::update()
{
  std::tUINT16 Whole, Remainder;

  // Level the copper.
  Whole = m_Copper / 1000;
  Remainder = m_Copper % 1000;

//  if ()

}


} // namespace DnD

